package sg.edu.nus.iss.vmcs.entity.simuator.dao.impl;

import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.List;


import sg.edu.nus.iss.vmcs.entity.simuator.dao.ISimulatorDrinkBrandDAO;

public class SimulatorDrinkBrandDAOImpl extends PropertiesDAOImpl implements
		ISimulatorDrinkBrandDAO {
	private static ISimulatorDrinkBrandDAO iSimulatorDrinkBrandDAO = null;
	
	private SimulatorDrinkBrandDAOImpl(String properties){
		try {
			init(properties);
		} catch (FileNotFoundException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
	
	public static ISimulatorDrinkBrandDAO getSimulatorDrinkBrandDao(String properties) 
	throws IOException {
		if(iSimulatorDrinkBrandDAO == null) {
			iSimulatorDrinkBrandDAO = new SimulatorDrinkBrandDAOImpl(properties);
		}
		return iSimulatorDrinkBrandDAO;
	}

}
